fix-Abs-parenthesis
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
committerAdam C. Powell, IV <hazelsct@debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
commit697b860d6e386c60358c321aefe127a95992ba06
tree6383f1b175a4a5b16f752183ed8d72b8939882c7
parent29e71ff227cc40145d9636bf0a173a92ee6961a2
fix-Abs-parenthesis

Replace Abs(foo < bar) by Abs(foo) < bar

This is legal C++, but certainly not the expected result,
(foo < bar) is a boolean which is promoted to an int, and
the function Abs(int) is called.

These bugs have been reported by Fotios Sioutis on the
opencascade forum.
Submitted upstream: http://www.opencascade.org/org/forum/thread_20187/

Gbp-Pq: Topic submitted
Gbp-Pq: Name fix-Abs-parenthesis.patch
ros/src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx
ros/src/Aspect/Aspect_RectangularGrid.cxx
ros/src/GeomFill/GeomFill_BoundWithSurf.cxx